home *** CD-ROM | disk | FTP | other *** search
- on setWall paper
- global gPaper, glastclickedSprite
- set glastclickedSprite to the clickOn
- set gPaper to paper
- puppetSprite(13, 1)
- puppetSprite(20, 1)
- puppetSprite(37, 1)
- if paper = "alligator" then
- set the locV of sprite 20 to 260
- else
- if paper = "bamboo" then
- set the locV of sprite 20 to 272
- else
- if paper = "bubbles" then
- set the locV of sprite 20 to 285
- else
- if paper = "pyramids" then
- set the locV of sprite 20 to 298
- else
- if paper = "sand" then
- set the locV of sprite 20 to 310
- else
- if paper = "weave" then
- set the locV of sprite 20 to 322
- end if
- end if
- end if
- end if
- end if
- end if
- set the castNum of sprite 20 to cast (paper & ".hlt")
- set the castNum of sprite 13 to cast (paper & ".scrn")
- set the castNum of sprite 37 to cast "rprompt.pict"
- set the locH of sprite 37 to 150
- set the locV of sprite 37 to 426
- updateStage()
- end
-
- on setWallRandom
- set paper to word random(6) of "alligator bamboo bubbles pyramids sand weave"
- setWall(paper)
- end
-
- on doubleClickDraw
- global glastclickedSprite
- set s to the clickOn
- if the doubleClick and (s = glastclickedSprite) then
- drawPaper()
- end if
- set glastclickedSprite to s
- end
-
- on cleanupPaper
- puppetSprite(1, 0)
- puppetSprite(11, 0)
- puppetSprite(13, 0)
- puppetSprite(20, 0)
- puppetSprite(37, 0)
- updateStage()
- end
-
- on drawPaperEnd
- global gPaper
- drawPaper()
- puppetSprite(11, 0)
- puppetSprite(13, 0)
- puppetSprite(20, 0)
- puppetSprite(37, 0)
- updateStage()
- go("end")
- set gPaper to EMPTY
- end
-
- on drawPaperEndForNext
- drawPaper()
- puppetSprite(11, 0)
- puppetSprite(13, 0)
- puppetSprite(20, 0)
- puppetSprite(37, 0)
- updateStage()
- end
-
- on drawPaper
- global gPaper
- if voidp(gPaper) or (gPaper = EMPTY) then
- set gPaper to "Alligator"
- end if
- puppetSprite(1, 1)
- set the castNum of sprite 1 to cast (gPaper & ".draw")
- set the locH of sprite 1 to 0
- set the locV of sprite 1 to 0
- updateStage()
- end
-